var myChart = echarts.init(document.getElementById('word'));
var weiboData = weibo;
myChart.setOption(option = {

    backgroundColor: '#404a59',
    title: {
        text: '微博签到数据点亮中国',
        subtext: 'From ThinkGIS',
        sublink: 'http://www.thinkgis.cn/public/sina',
        left: 'center',
        top: 'top',
        textStyle: {
            color: '#fff'
        }
    },
    legend: {
        left: 'left',
        data: ['强', '中', '弱'],
        textStyle: {
            color: '#ccc'
        }
    },
    geo: {
        name: '强',
        type: 'scatter',
        map: 'china',
        label: {
            emphasis: {
                show: false
            }
        },
        itemStyle: {
            normal: {
                areaColor: '#323c48',
                borderColor: '#111'
            },
            emphasis: {
                areaColor: '#2a333d'
            }
        }
    },
    series: [{
        name: '弱',
        type: 'scatter',
        coordinateSystem: 'geo',
        symbolSize: 1,
        large: true,
        itemStyle: {
            normal: {
                shadowBlur: 2,
                shadowColor: 'rgba(37, 140, 249, 0.8)',
                color: 'rgba(37, 140, 249, 0.8)'
            }
        },
        data: weiboData
    }, {
        name: '中',
        type: 'scatter',
        coordinateSystem: 'geo',
        symbolSize: 1,
        large: true,
        itemStyle: {
            normal: {
                shadowBlur: 2,
                shadowColor: 'rgba(14, 241, 242, 0.8)',
                color: 'rgba(14, 241, 242, 0.8)'
            }
        },
        data: weiboData
    }, {
        name: '强',
        type: 'scatter',
        coordinateSystem: 'geo',
        symbolSize: 1,
        large: true,
        itemStyle: {
            normal: {
                shadowBlur: 2,
                shadowColor: 'rgba(255, 255, 255, 0.8)',
                color: 'rgba(255, 255, 255, 0.8)'
            }
        },
        data: weiboData
    }]
});
myChart.setOption(option);

